package animal;

public class Dog extends Animal implements Jumpping{
    public Dog() {
    }

    public Dog(String name, String age) {
        super(name, age);
    }

    public void watchDoor() {
        System.out.println("看门");
    }

    @Override
    public void eatFood() {
        System.out.println("够吃骨头");
    }

    @Override
    public String toString() {
        return "Dog{}";
    }

    @Override
    public void jump() {
        System.out.println("狗可以跳");
    }
}
